package Boundry;

import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JRadioButton;
import javax.swing.JButton;

import Boundry.GenericTools.IPanelOperation;
import Boundry.GenericTools.InputPanel;

public class ApproveDenyExtenstionGUI extends InputPanel implements IPanelOperation{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JLabel lblData;

	public JLabel getLblData() {
		return lblData;
	}

	public void setLblData(String lblData) {
		this.lblData.setText(lblData) ;
	}

	/**
	 * Create the panel.
	 */
	public ApproveDenyExtenstionGUI() {
		setLayout(null);
		
		JLabel lblApprovedenyExtenstion = new JLabel("Approve\\Deny Extenstion");
		lblApprovedenyExtenstion.setFont(new Font("Tahoma", Font.PLAIN, 22));
		lblApprovedenyExtenstion.setBounds(137, 25, 276, 27);
		mainPanel.add(lblApprovedenyExtenstion);
		
		JRadioButton RadioButtonApp = new JRadioButton("Approve");
		RadioButtonApp.setBounds(136, 125, 109, 23);
		mainPanel.add(RadioButtonApp);
		
		JRadioButton rdbtnNewRadioButton_1 = new JRadioButton("Deny");
		rdbtnNewRadioButton_1.setBounds(282, 125, 109, 23);
		mainPanel.add(rdbtnNewRadioButton_1);
		
		JLabel lblReuquestId = new JLabel("Reuquest ID:");
		lblReuquestId.setBounds(136, 77, 97, 27);
		mainPanel.add(lblReuquestId);
		
		lblData = new JLabel("");
		lblData.setBounds(234, 70, 72, 34);
		mainPanel.add(lblData);

	}

	@Override
	public String apHelpButton() {
		return "Here the Inspector can choose to approve the request for time extension n the different phases";
	}

	public void setdata(String string) {
		// TODO Auto-generated method stub
		this.setLblData(string);
	}

	@Override
	public String setTitle() {
 		return "Approve / Deny time extension";
	}
}
